package com.automobile.service;

import com.automobile.domain.User;

import java.util.List;

public interface UserService {
	
	//注册
	boolean registerUser(User user);
	
	//登录
	User loginUser(String username);
	
	//激活
	boolean activate(String activateCode);
	
	//查询用户
	User findUserById(int userId);
	
	//更新信息
    User updateMessage(User user);
	
	//修改密码
    User updatePassword(User user);
	
	//修改手机号
    User updatePhone(User user);

    List<User> findAll();
	
	
}
